package com.st.event.demo.annotation;


import com.st.event.demo.register.EventListenerDefinitionRegister;
import org.springframework.context.annotation.Import;
import org.springframework.core.annotation.AliasFor;

import java.lang.annotation.*;

/**
 * @author yhxst
 * @date 2019-02-22
 * 事件类扫描注解，需要声明在springBoot启动类上才能开启事件机制
 */
@Retention(RetentionPolicy.RUNTIME)
@Documented
@Target({ElementType.TYPE})
@Import({EventListenerDefinitionRegister.class})
public @interface EventScan {

    @AliasFor("value")
    String[] basePackage() default {};

    @AliasFor("basePackage")
    String[] value() default {};
}
